<?PHP $this->Html->css('management', null, array('inline' => false)); ?>
<div class="sites index">
	<h2><?php echo __('Sites');?></h2>
	<table cellpadding="0" cellspacing="0">
	<tr>
			<th><?php echo $this->Paginator->sort('id_site');?></th>
			<th><?php echo $this->Paginator->sort('nom_site');?></th>
			<th><?php echo $this->Paginator->sort('adresse_site');?></th>
			<th><?php echo $this->Paginator->sort('code_postal_site');?></th>
			<th><?php echo $this->Paginator->sort('ville_site');?></th>
			<th><?php echo $this->Paginator->sort('telephone_site');?></th>
			<th><?php echo $this->Paginator->sort('fax_site');?></th>
			<th><?php echo $this->Paginator->sort('eligibilite_site');?></th>
			<th><?php echo $this->Paginator->sort('install_voxity_site');?></th>
			<th><?php echo $this->Paginator->sort('id_societe');?></th>
			<th class="actions"><?php echo __('Actions');?></th>
	</tr>
	<?php
	foreach ($sites as $site): ?>
	<tr>
		<td><?php echo h($site['Site']['id_site']); ?>&nbsp;</td>
		<td><?php echo h($site['Site']['nom_site']); ?>&nbsp;</td>
		<td><?php echo h($site['Site']['adresse_site']); ?>&nbsp;</td>
		<td><?php echo h($site['Site']['code_postal_site']); ?>&nbsp;</td>
		<td><?php echo h($site['Site']['ville_site']); ?>&nbsp;</td>
		<td><?php echo h($site['Site']['telephone_site']); ?>&nbsp;</td>
		<td><?php echo h($site['Site']['fax_site']); ?>&nbsp;</td>
		<td><?php echo h($site['Site']['eligibilite_site']); ?>&nbsp;</td>
		<td><?php if(h($site['Site']['install_voxity_site'])) echo 'oui'; else echo 'non'; ?>&nbsp;</td>
		<td><?php echo h($site['Site']['id_societe']); ?>&nbsp;</td>
		<td class="actions">
			<?php echo $this->Html->link(__('Voir'), array('action' => 'view', $site['Site']['id_site'])); ?>
			<?php echo $this->Html->link(__('Modifier'), array('action' => 'edit', $site['Site']['id_site'])); ?>
			<?php echo $this->Form->postLink(__('Supprimer'), array('action' => 'delete', $site['Site']['id_site']), null, __('Are you sure you want to delete # %s?', $site['Site']['id_site'])); ?>
		</td>
	</tr>
<?php endforeach; ?>
	</table>
	<p>
	<?php
	echo $this->Paginator->counter(array(
	'format' => __('Page {:page} sur {:pages}')
	));
	?>	</p>

	<div class="paging">
	<?php
		echo $this->Paginator->prev('< ' . __('précédent'), array(), null, array('class' => 'prev disabled'));
		echo $this->Paginator->numbers(array('separator' => ''));
		echo $this->Paginator->next(__('suivant') . ' >', array(), null, array('class' => 'next disabled'));
	?>
	</div>
</div>
<div class="actions">
	<h3><?php echo __('Vous pouvez aussi ...'); ?></h3>
	<ul>
		<li><?php echo $this->Html->link(__('Créer un site'), array('action' => 'add')); ?></li>
		<li><?php echo $this->Html->link(__('Consulter la liste des clients'), array('controller' => 'societes', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('Créer un client'), array('controller' => 'societes', 'action' => 'add')); ?> </li>
	</ul>
</div>
